package com.atguigu.gmall.search.vo;

import com.atguigu.gmall.search.Goods;
import lombok.Data;

import java.util.List;

/**
 * 检索完成的响应结果
 */
@Data
public class SearchRespVo {
    //TODO 品牌的所有参数
    private  SearchParamVo searchParamVo ;
    //TODO 品牌面包屑
    private  String  trademarkParam;
    //TODO 属性面包屑
    private List<Props> propsParamList;
    // TODO 品牌列表
    private  List<Trademark> trademarkList;
    //TODO 属性列表
    private  List<Attrs> attrsList;
    //TODO url参数
    private  String urlParam;
    //TODO 排序
    private  OrderMap  orderMap;
    //TODO 商品集合
    private  List<Goods> goodsList;
    //TODO 页码
    private  Integer  pageNo;
    //TODO 总页码
    private  Long totalPages;
  @Data
  public static  class  Props{
      private String attrName;
      private String attrValue;
      private Long attrId;
  }
  @Data
  public  static class  Trademark{
      private Long tmId;
      private String tmName;
      private String tmLogoUrl;
  }
    @Data
    public static class Attrs{
        private String attrName;
        private List<String> attrValueList;
        private Long attrId;
    }

    @Data
    public static class OrderMap {
        private String type;
        private String sort;
    }

}
